s = ''
def str_reverse(s):
  return s[::-1]
  

def substr(s,x,y):
  return s[x:y]

if __name__ == '__main__':
  print(str_reverse('str_rever功能是倒序'))
  print(substr('substr功能是切片',1,6))
  